from urllib3 import HTTPConnectionPool

pool = HTTPConnectionPool('127.0.0.1', port=5000, maxsize=2)


def send_http():
    for i in range(5):
        r = pool.request('GET', '/hello', redirect=False)
        print(r.status)
        print("Connections: {}; Requests: {}".format(pool.num_connections, pool.num_requests))
        print(pool.scheme)


send_http()
